#include "Pheromone.h"
#include "item.h"
#include "Area.h"
#include <iostream>
#include "AntColony.h"


CPheromone::CPheromone(void)
{
	m_iPheromone=0;
}


CPheromone::~CPheromone(void)
{

}

void CPheromone::act(int id)
{
	if(m_iPheromone>0)
	{
		m_iPheromone-=g_phreduction;
	}

	else{
		GetPosition()->DeleteItem(this);
		delete this;
	
	}
}
